package com.baidu.mpks.schema.service;

import com.baidu.mpks.schema.domain.UserSchemaAll;
import com.baidu.mpks.schema.dto.UserSchemaClassDto;

import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.Set;

public interface UserSchemaPermissionService {

    Map<String, Set<String>> getAncestorMap(List<UserSchemaAll> schemaAll);

    Set<String> getChildrenMapIncludeSelf(String classAtId, List<UserSchemaAll> schemaAll);

    List<UserSchemaAll> getSchemaAll() throws IOException;

    List<UserSchemaClassDto> getSchemaClassList(String runId, String type) throws IOException;

    UserSchemaClassDto getSchemaClassById(Integer classId) throws IOException;
}
